import axios from '@/libs/server'
// 商品列表查询
export const getShopList = data => axios.request({
  url: '/wechat/point/item/query',
  method: 'post',
  data
})
// 商品详情查询
export const getShopDetail = data => axios.request({
  url: '/wechat/point/item/get',
  method: 'post',
  data
})
//  商品下架
export const shopDown = data => axios.request({
  url: '/wechat/point/item/delisting',
  method: 'post',
  data
})
//  商品上架
export const shopUp = data => axios.request({
  url: '/wechat/point/item/listing',
  method: 'post',
  data
})

//  优惠券列表
export const couponList = data => axios.request({
  url: '/wechat/point/coupon/list',
  method: 'post',
  data
})
// 优惠券详情 /wechat/point/coupon/get
export const couponDetail = data => axios.request({
  url: '/wechat/point/coupon/get',
  method: 'post',
  data
})
//  更新接口
export const pointUpdate = data => axios.request({
  url: '/wechat/point/item/update',
  method: 'post',
  data
})
// 商品删除 /wechat/point/item/delete
export const pointDelete = data => axios.request({
  url: '/wechat/point/item/delete',
  method: 'post',
  data
})
